GitHub 您所在的位置:网站首页 Terraform Registry GitHub

GitHub

2022-12-07 13:34| 来源: 网络整理| 查看: 265

Azure Container Registry

Changelog Notice Apache V2 License TF Registry

This Terraform module creates an Azure Container Registry.

Global versioning rule for Claranet Azure modules Module version Terraform version AzureRM version >= 7.x.x 1.3.x >= 3.0 >= 6.x.x 1.x >= 3.0 >= 5.x.x 0.15.x >= 2.0 >= 4.x.x 0.13.x / 0.14.x >= 2.0 >= 3.x.x 0.12.x >= 2.0 >= 2.x.x 0.12.x < 2.0 < 2.x.x 0.11.x < 2.0 Usage

This module is optimized to work with the Claranet terraform-wrapper tool which set some terraform variables in the environment needed by this module. More details about variables set by the terraform-wrapper available in the documentation.

module "azure_region" { source = "claranet/regions/azurerm" version = "x.x.x" azure_region = var.azure_region } module "rg" { source = "claranet/rg/azurerm" version = "x.x.x" location = module.azure_region.location client_name = var.client_name environment = var.environment stack = var.stack } module "logs" { source = "claranet/run-common/azurerm//modules/logs" version = "x.x.x" client_name = var.client_name environment = var.environment stack = var.stack location = module.azure_region.location location_short = module.azure_region.location_short resource_group_name = module.rg.resource_group_name } module "acr" { source = "claranet/acr/azurerm" version = "x.x.x" client_name = var.client_name environment = var.environment stack = var.stack location = module.azure_region.location location_short = module.azure_region.location_short resource_group_name = module.rg.resource_group_name sku = "Standard" logs_destinations_ids = [ module.logs.logs_storage_account_id, module.logs.log_analytics_workspace_id ] extra_tags = { foo = "bar" } } Providers Name Version azurecaf ~> 1.2, >= 1.2.22 azurerm >= 3.22 Modules Name Source Version diagnostics claranet/diagnostic-settings/azurerm 6.2.0 Resources Name Type azurerm_container_registry.registry resource azurecaf_name.acr data source Inputs Name Description Type Default Required admin_enabled Whether the admin user is enabled. bool false no allowed_cidrs List of CIDRs to allow on the registry. list(string) [] no allowed_subnets List of VNet/Subnet IDs to allow on the registry. list(string) [] no azure_services_bypass_allowed Whether to allow trusted Azure services to access a network restricted Container Registry. bool false no client_name Client name/account used in naming. string n/a yes custom_diagnostic_settings_name Custom name of the diagnostics settings, name will be 'default' if not set. string "default" no custom_name Custom Azure Container Registry name, generated if not set string "" no default_tags_enabled Option to enable or disable default tags. bool true no environment Project environment. string n/a yes extra_tags Additional tags to associate with your Azure Container Registry. map(string) {} no georeplication_locations A list of Azure locations where the Ccontainer Registry should be geo-replicated. Only activated on Premium SKU. Supported properties are: location = string zone_redundancy_enabled = bool regional_endpoint_enabled = bool tags = map(string) or this can be a list of string (each element is a location) any [] no images_retention_days Specifies the number of images retention days. number 90 no images_retention_enabled Specifies whether images retention is enabled (Premium only). bool false no location Azure region to use. string n/a yes location_short Short string for Azure location. string n/a yes logs_categories Log categories to send to destinations. list(string) null no logs_destinations_ids List of destination resources IDs for logs diagnostic destination.Can be Storage Account, Log Analytics Workspace and Event Hub. No more than one of each can be set.If you want to specify an Azure EventHub to send logs and metrics to, you need to provide a formated string with both the EventHub Namespace authorization send ID and the EventHub name (name of the queue to use in the Namespace) separated by the ` ` character. list(string) n/a logs_metrics_categories Metrics categories to send to destinations. list(string) null no logs_retention_days Number of days to keep logs on storage account. number 30 no name_prefix Optional prefix for the generated name string "" no name_suffix Optional suffix for the generated name string "" no public_network_access_enabled Whether the Container Registry is accessible publicly. bool true no resource_group_name Name of the resource group. string n/a yes sku The SKU name of the the container registry. Possible values are Classic (which was previously Basic), Basic, Standard and Premium. string "Standard" no stack Project stack name. string n/a yes trust_policy_enabled Specifies whether the trust policy is enabled (Premium only). bool false no use_caf_naming Use the Azure CAF naming provider to generate default resource name. custom_name override this if set. Legacy default name is used if this is set to false. bool true no Outputs Name Description acr_fqdn The Container Registry FQDN. acr_id The Container Registry ID. acr_name The Container Registry name. admin_password The Password associated with the Container Registry Admin account - if the admin account is enabled. admin_username The Username associated with the Container Registry Admin account - if the admin account is enabled. login_server The URL that can be used to log into the container registry.


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有